package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDate;

/**
 * 违规记录表
 *
 * @author code-generate
 * @date 2022-01-20
 */
@Data
@DbTable(tableName = "t_illegal_record")
public class IllegalRecord extends BaseEntity {
        /**
     * 违规对象id
     */
    @DbTableField(columnName = "c_obj_id", dbType = DbTypeEnum.VARCHAR)
    public String objId ;

    /**
     * 所属标段
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.INTEGER)
    public Integer sectionId ;

    /**
     * 违纪事由
     */
    @DbTableField(columnName = "c_illegal_reason", dbType = DbTypeEnum.VARCHAR)
    public String illegalReason ;

    /**
     * 失信等级,A:严重失信
     */
    @DbTableField(columnName = "c_distrust_level", dbType = DbTypeEnum.VARCHAR)
    public String distrustLevel ;

    /**
     * 违规日期
     */
    @DbTableField(columnName = "c_illegal_date", dbType = DbTypeEnum.DATE)
    public LocalDate illegalDate ;

    /**
     * 详细说明
     */
    @DbTableField(columnName = "c_explain", dbType = DbTypeEnum.VARCHAR)
    public String explain ;

    /**
     * 扣分 
     */
    @DbTableField(columnName = "c_score", dbType = DbTypeEnum.INTEGER)
    public Integer score ;

    /**
     * 登记人
     */
    @DbTableField(columnName = "c_registrant", dbType = DbTypeEnum.VARCHAR)
    public String registrant ;

    /**
     * 违规对象
     */
    @DbTableField(columnName = "c_obj_name", dbType = DbTypeEnum.VARCHAR)
    public String objName ;
    /**
     * 标段名
     */
    @DbTableField(columnName = "c_section_name", dbType = DbTypeEnum.VARCHAR)
    public String sectionName ;
    /**
     * 登记日期
     */
    @DbTableField(columnName = "c_register_date", dbType = DbTypeEnum.DATE)
    public LocalDate registerDate ;
}
